// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'// 支持ES6转换
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import FastClick from 'fastclick'// 解决300ms延迟
import 'common/stylus/index.styl'// 全局样式文件
import VueLazyload from 'vue-lazyload' // 懒加载
// import Vconsole from 'vconsole'
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('common/image/default.png'),
  loading: require('common/image/default.jpg'),
  attempt: 2
})
// let vConsole = new Vconsole()
// Vue.use(vConsole)
Vue.config.productionTip = false

FastClick.attach(document.body)// 解决300ms延迟

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
